package org.cqipc.edu.controller;

import org.cqipc.edu.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 类别控制器
 * @ClassNmae: TypeController
 * @Author: HeYue
 * @DateTime: 2020-11-01 15:04
 **/
@RestController
public class TypeController {

    @Autowired
    private TypeService typeService;


    @GetMapping("/getType1List")
    public Object getType1List() {
        return typeService.getType1List();
    }


    @GetMapping("/getType2ListByType1Id/{values}")
    public Object getType2ListByType1Id(@PathVariable("values") Integer id) {
        return typeService.getType2ListByType1Id(id);
    }
    @GetMapping("/getType3ListByType2Id/{values}")
    public Object getType3ListByType2Id(@PathVariable("values") Integer id) {
        return typeService.getType3ListByType2Id(id);
    }

}
